home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_libgtop.idb / usr / freeware / bin / libgtop-config.z / libgtop-config
Encoding:
Text File  |  1999-07-16  |  685 b   |  38 lines

  1. #!/bin/sh
  2.  
  3. usage="\
  4.     Usage: libgtop-config [--version] [--config] [--features-def-file]"
  5.  
  6. config_file="${ROOT}/usr/freeware/${ABILIB-lib32}/libgtopConf.sh"
  7. . $config_file
  8.  
  9. features_def_file="${ROOT}/usr/freeware/${ABILIB-lib32}/libgtop-features.def"
  10.  
  11. if test $# -eq 0; then
  12.       echo "${usage}" 1>&2
  13.       exit 1
  14. fi
  15.  
  16. while test $# -gt 0; do
  17.   case "$1" in
  18.   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  19.   *) optarg= ;;
  20.   esac
  21.  
  22.   case $1 in
  23.     --version)
  24.       echo $LIBGTOP_VERSION
  25.       ;;
  26.     --config)
  27.       echo $config_file
  28.       ;;
  29.     --features-def-file)
  30.       echo $features_def_file
  31.       ;;
  32.     *)
  33.       echo "${usage}" 1>&2
  34.       exit 1
  35.   esac
  36.   shift
  37. done
  38.